package org.dromara.wms.domain.bo;

import org.dromara.wms.domain.WmsStockCheck;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 库存盘点业务对象 wms_stock_check
 *
 * @author wenrui Su
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WmsStockCheck.class, reverseConvertGenerate = false)
public class WmsStockCheckBo extends BaseEntity {

    /**
     * 事务
     */
    @NotNull(message = "事务不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 仓库
     */
    @NotNull(message = "仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 盘点人
     */
    @NotNull(message = "盘点人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
